package com.yyz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tb_user")// 指定表名
public class User {

    @TableId(value = "id", type = IdType.AUTO)// 指定主键生成策略
    private Integer id;
    @TableField(value = "username")// 指定数据库字段名
    private String usernames;
    private String password;
    private String email;
    private Double balance;
}
